package edu.hwadee.entity;

import java.util.Date;

/**
 * Carcrash entity. @author MyEclipse Persistence Tools
 */

public class Carcrash implements java.io.Serializable {

	// Fields

	private Integer crashId;
	private Car car;
	private Date crashDate;
	private Float loss;
	private String description;
	private String driver;
	private String address;

	// Constructors

	/** default constructor */
	public Carcrash() {
	}

	/** full constructor */
	public Carcrash(Car car, Date crashDate, Float loss, String description, String driver, String address) {
		this.car = car;
		this.crashDate = crashDate;
		this.loss = loss;
		this.description = description;
		this.driver = driver;
		this.address = address;
	}

	// Property accessors

	public Integer getCrashId() {
		return this.crashId;
	}

	public void setCrashId(Integer crashId) {
		this.crashId = crashId;
	}

	public Car getCar() {
		return this.car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	public Date getCrashDate() {
		return this.crashDate;
	}

	public void setCrashDate(Date crashDate) {
		this.crashDate = crashDate;
	}

	public Float getLoss() {
		return this.loss;
	}

	public void setLoss(Float loss) {
		this.loss = loss;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDriver() {
		return this.driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}